package qsou.rpc.framework.remoting.dto;

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author shuang.kou
 * @createTime 2020年05月10日 08:24:00
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Builder
@ToString
public class RpcRequest implements Serializable {
  private static final long serialVersionUID = 1905122041950251207L;
  private String requestId;
  private String interfaceName;
  private String methodName;
  private Object[] parameters;
  private Class<?>[] paramTypes;
  private String version;
  private String group;

  public String getRpcServiceName() {
    return this.getInterfaceName() + this.getGroup() + this.getVersion();
  }
}
